<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="false" %>
<%@ page import="com.ckeditor.CKEditorConfig" %>
<html>
<head>
	<meta content="text/html; charset=utf-8" http-equiv="content-type" />
	<title>CKEditor Samples &mdash; Java Integration</title>
	<script src="resources/ckeditor/ckeditor.js"></script>
</head>
<body>
<P>  The time on the server is ${serverTime}. </P>
<p>
		The samples of CKEditor integration are available in the <a class="samples" href="sampleindex">_samples folder</a>.
	</p>
	<img alt="" src="resources/archive/test.jpg">
	<form>
            <textarea id="editor1" name="editor1" rows="10" cols="80">
                This is my textarea to be replaced with CKEditor.
            </textarea>
            <script>

                // Replace the <textarea id="editor1"> with a CKEditor
                // instance, using default configuration.
                
                CKEDITOR.replace( 'editor1',
{
	filebrowserBrowseUrl : 'resources/ckfinder/ckfinder.html',
	filebrowserImageBrowseUrl : 'resources/ckfinder/ckfinder.html?type=Images',
	filebrowserFlashBrowseUrl : 'resources/ckfinder/ckfinder.html?type=Flash',
	filebrowserUploadUrl : 
 	   'resources/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Files&currentFolder=/resources/images/',
	filebrowserImageUploadUrl : 
	   'resources/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Images&currentFolder=/resources/cars/',
	filebrowserFlashUploadUrl : 'resources/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=Flash'
});
                
                //CKFinder.setupCKEditor( editor, { basePath : '/ckfinder/', id:'editor1', startupPath : "Images:/resources/archive", startupFolderExpanded : true, rememberLastFolder : false } ) ;
            </script>
            
        </form>
</body>
</html>
